package org.ecloud;

import java.io.IOException;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

@SpringBootApplication
@EnableDiscoveryClient
@EnableAutoConfiguration/*(exclude={DataSourceAutoConfiguration.class})*/
public class OAuth2ServerApplication implements CommandLineRunner {
	
	private static Logger logger = LoggerFactory.getLogger(OAuth2ServerApplication.class);
	
	public static void main(String[] args) throws IOException {
		logger.info("Starting OAuthorizationServer.");
		SpringApplication.run(OAuth2ServerApplication.class, args);
	}

	@Override
	public void run(String... args) throws Exception {
		logger.info("Started OAuthorizationServer.");
	}
	
}
